package poo.polinomi;

public class Applicazione {

	public static void main(String[] args) {

		Polinomio p1 = new PolinomioLL();
		Polinomio p2 = new PolinomioConcatenato();
		
		
		p1.add(new Monomio(-5, 3));
		p1.add(new Monomio(7, 1));
		p1.add(new Monomio(-2, 0));
		p2.add(new Monomio(4, 4));
		p2.add(new Monomio(-6, 3));
		p2.add(new Monomio(5, 2));
		p2.add(new Monomio(-1, 1));
		p2.add(new Monomio(1, 0));

		System.out.println(p1 + "+" + p2 + "=" + p1.add(p2));

	}

}
